package com.cxh.service.impl;

import com.cxh.base.Data2ServiceImpl;
import com.cxh.util.DataSource;
import com.cxh.dao.SysUserRoleDao;
import com.cxh.entity.SysUserRole;
import com.cxh.service.SysUserRoleService;
import com.cxh.util.CommonUtility;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类说明：
 * @author  ChenXH
 * @date  2018-11-29 11:14:13
 */
@Service("sysUserRoleService")
@DataSource("dataSource2")
public class SysUserRoleServiceImpl extends Data2ServiceImpl<SysUserRole> implements SysUserRoleService {
    @Autowired
    private SysUserRoleDao dao;


    @Override
    public List<SysUserRole> loadPageList(Map<String, Object> map) {
       return dao.loadPageList(map);
    }
   
    @Override
    public List<Integer> getRoleByUserId(String userid) {
    	return dao.getRoleByUserId(userid);
    }
}
